home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-04-06 | 1.0 KB | 26 lines | [TEXT/GEOL] |
- Item 3815373 4-April-90 07:53PDT
-
- From: DEREK White, Derek
-
- To: CPLUS.DEV$ C++ Interest List--Developers
- CPLUS.APPLE$ C++ Interest List--Apple Employees
-
- Sub: Private Base vs Priv. Field
-
- I am having trouble finding much of a conceptual difference between a class
- X that has a private base class Y, and a class Z that has a private member of
- the base class Y. Neither X or Z is a subtype of Y right? Are the follow the
- only differences?:
- 1) In the methods of class X, the members of Y can be accessed directly,
- but in the methods of class Z, member access must be qualified by
- Y.(...).
- 2) Class X can republicize members of class Y (including fields), but
- class Z can only republicize member functions by declaring new member
- functions that call Y's member functions.
- 3) The vTables for X and Z would be different (Z's being smaller).
-
- Hope to hear from someone,
- Derek White
- ATG East/Columbia
-
-